#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.64)
AC_INIT(ipmi-stack, 0.0.1, yuanyu.lin@gmail.com)
AC_CONFIG_SRCDIR([src/ipmi/main.c])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE(ipmi-stack,0.0.1)

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([pthread], [main])
AC_CHECK_LIB([dl], [main])
AC_PROG_RANLIB

# Checks for header files.
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([string.h])
# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([socket])

AC_OUTPUT([Makefile
		src/lib/netfn/Makefile
		src/lib/lan/Makefile 
		src/lib/message/Makefile 
		src/ipmi/Makefile
		])
